package foalvleditor.ctrl;

import java.util.ArrayList;

import foalvleditor.gameobjects.AbstractGameObject;
import foalvleditor.gameobjects.GameEvent;

/**
 * This class is part of MVC yet to be implemented.
 */

public class LevelController extends AbstractController {

	public static final String ELEMENT_LEVEL_PROPERTY = "Level";
	public static final String ELEMENT_CHANGED_PROPERTY = "Changed";
	public static final String ELEMENT_EVENTS_PROPERTY = "Events";
	public static final String ELEMENT_NAME_PROPERTY = "Name";
	public static final String ELEMENT_BACKGROUND_PROPERTY = "Background";

	    public void changeElementLevel(ArrayList<AbstractGameObject> newLevel){
	        setModelProperty(ELEMENT_LEVEL_PROPERTY, newLevel);
	    }

	    public void changeElementChanged(boolean newChanged){
	        setModelProperty(ELEMENT_CHANGED_PROPERTY, newChanged);
	    }

	    public void changeElementEvents(ArrayList<GameEvent> newEvents){
	    	setModelProperty(ELEMENT_EVENTS_PROPERTY, newEvents);
	    }

	    public void changeElementName(String newName){
	    	setModelProperty(ELEMENT_NAME_PROPERTY, newName);
	    }

	    public void changeElementBackground(AbstractGameObject newBackground){
	    	setModelProperty(ELEMENT_BACKGROUND_PROPERTY, newBackground);
	    }

}
